Coding and decoding method and device with parameter set and electronic device

ABSTRACT

Provided are methods and devices for encoding and decoding using parameter sets, and electronic equipment. In the method for encoding, an encoder determines parameter sets and/or virtual parameter sets for a slice, wherein the virtual parameter set is a data structure which is generated by loading information acquired from a bitstream into a syntax structure of an existing parameter set and/or a preset syntax structure and includes tool parameters and/or control parameters; and the encoder writes identification number (ID)(s) of the parameter sets and/or virtual parameter sets into a bitstream. Using the method, encoding and decoding efficiency is improved.

TECHNICAL FIELD

The disclosure relates to the field of communication, in particular tomethods and devices for encoding and decoding using parameter sets, andelectronic equipment.

BACKGROUND

In H.264/Advanced Video Coding (AVC) compatible Three-Dimensional Video(3DV) coding standard 3D-AVC (AVC compatible video with depthinformation) which is an active standardization project at present,Depth-Range-based Weighted Prediction (DRWP) and View SynthesisPrediction (VSP) encoding and decoding processes require the use ofDepth Parameters (DPs), including maximum depth (marked as “ZFar”),minimum depth (marked as “ZNear”), camera parameters (such as a focaldistance) and the like, which are used in a depth map generationprocess. At present, 3D-AVC encodes and transmits DPs in a subsetSequence Parameter Set (subset SPS or sub-SPS, which is a type ofparameter set) and a Depth Parameter Set (DPS) respectively.

3D-AVC determines whether the DPs in the sub-SPS or the DPS are to beused by judging whether the value of syntax element dps_id in SliceHeader (SH) is equal to “0” or not. The decoding process is described asfollows.

In the decoding process, a decoder parses control parameters in the SH.If the DRWP and/or VSP is used by the decoding process, the decoderfurther parses a field corresponding to the syntax element dps_id in theSH. If the value of the dps_id is equal to 0, the decoder uses the DPsin the sub-SPS; while if the value of the dps_id is more than 0, thedecoder activates the DPS with its identification number (ID) valueequal to dps_id following parameter set activation process, and the DPsin this activated DPS are used in the decoding process.

Corresponding to the decoding process, the encoding process is asfollows.

In the encoding process, when DPs are used, an encoder writes an ID ofthe DPS into the field corresponding to the dps_id in the SH. If the DPsin the sub-SPS are used, value “0” is written into the fieldcorresponding to the syntax element dps_id of the SH; while if the DPsin a certain DPS are used, an ID value of this DPS is written into thefield corresponding to the syntax element dps_id of the SH, and this IDvalue is equal to the value of the syntax element depth_parameter_set_idin this DPS.

In order to improve the encoding efficiency, predictive encoding mayfurther be used for the DPs in the DPS, and a prediction mode andprediction reference information may be encoded in the DPS. Theprediction reference may be the DPs in another DPS, and may also be theDPs in a sub-SPS. Therefore, 3D-AVC stores the DPs decoded from DPS inan array and employs dps_id as the index parameter for accessing thearray, and permanently employs an array element corresponding to anindex parameter “0” as a storage location for the DPs in the sub-SPS. Inthis way, 3D-AVC identifies the prediction reference of the DPs in theDPS directly by the index parameter of the DPs in the array.

Another possible implementation mode different from the SH of 3D-AVC isas follows: an independent flag is added to identify whether the DPsused for a slice decoding process are from the sub-SPS or not, insteadof judging whether the DPs in the sub-SPS or the DPS are to be used byjudging whether the dps_id is 0 or not. When the DPs in the sub-SPS arenot used, the DPS with its ID value equal to dps_id is activated, andcurrent slice is decoded using the DPs in the activated DPS. The methodis not included in 3D-AVC because an additional flag and itscorresponding decoding operations are required to be added.

Main defects of the conventional method used by 3D-AVC are inconsistencywith general operations of a parameter set, which introduces additionaljudgment and special condition processing flows in an implementationflow. Main limitations of the conventional method are as follows.

First, the operations related to SPS/sub-SPS in the decoding process areinconsistent with general processing flows of the parameter set.“Setting data included in the parameter set to be data actually used inthe decoding process immediately after the parameter set is activated”is one of general flows of the parameter set. In slice decoding process,the decoder activates the sub-SPS at first. For a slice using the DPs,the decoder can determine to update information in a storage elementcorresponding to the index parameter “0” in the array storing DP data,but cannot determine whether to use DP information of the activatedsub-SPS or not in a subsequent decoding process of the slice afteractivating the sub-SPS, since it has to wait for DRWP and/or VSP flagsand dps_id information.

Second, as mentioned above, the decoder cannot determine the validityrange of the DPs included in the sub-SPS in the decoding process, namelywhether the DPs included in the sub-SPS are applicable to the entiredecoding process or only used for updating the array storing the DPdata, immediately after the sub-SPS is activated.

Third, the DPS operations in the decoding process are inconsistent withthe general processing flows of the parameter set. “That the decoderactivates the parameter set with its ID equal to the value of thecorresponding syntax element in the SH and simultaneously sets apreviously activated parameter set with a different ID value into aninactive state” is also one of the general flows of the parameter set.In the slice decoding process, the condition that the value of dps_id is“0” is required to be specially processed, that is, the information inthe storage element corresponding to the index parameter “0” in thearray storing the DP data is assigned to a variable corresponding to theDP in a current slice decoding process, and a special conditionprocessing flow of the decoder is added.

For the problem of relatively complex flows of methods forencoding/decoding using parameter sets in a related art, there is yet noeffective solution.

SUMMARY OF THE DISCLOSURE

For the problem of relatively complex flows of methods forencoding/decoding using parameter sets in the related art, theembodiments of the disclosure provide methods and devices for encodingand decoding using parameter sets, and electronic equipment, so as to atleast solve the problem.

According to one embodiment of the disclosure, a method for encodingusing parameter sets is provided, which includes: an encoder determinesparameter sets and/or virtual parameter sets for a slice, wherein thevirtual parameter set is a data structure which is generated by loadinginformation acquired from a bitstream into a syntax structure of anexisting parameter set and/or a preset syntax structure and includestool parameters and/or control parameters; and the encoder writes IDs ofthe parameter sets and/or virtual parameter sets into a bitstream.

In an example embodiment, the step that the encoder determines theparameter sets and/or virtual parameter sets for the slice includes: theencoder judges whether at least one of following conditions meets ornot: tool parameters and/or control parameters for encoding currentslice are the same as tool parameters and/or control parameters of theexisting parameter set, the tool parameters and/or control parametersfor encoding the current slice are the same as tool parameters and/orcontrol parameters in an existing virtual parameter set; if a judgmentresult is positive, the encoder determines the existing parameter setwith the same tool parameters and/or control parameters as the parameterset for the slice, and/or determines the existing virtual parameter setwith the same tool parameters and/or control parameters as the virtualparameter set for the slice; and if the judgment result is negative, theencoder employs a generated parameter set as the parameter set for theslice, and/or employs a constructed virtual parameter set as the virtualparameter set for the slice.

In an example embodiment, the step that the encoder writes the IDs ofthe parameter sets and/or virtual parameter sets into the bitstreamincludes: the encoder writes an ID of the parameter set with the sametool parameters and/or control parameters and/or an ID of the virtualparameter set with the same tool parameters and/or control parametersinto one of the following bitstreams: an SH bitstream, a bitstreamemploying the parameter set with the same tool parameters and/or controlparameters and/or a bitstream employing the virtual parameter set withthe same tool parameters and/or control parameters.

In an example embodiment, the step that the encoder writes the IDs ofthe parameter sets and/or virtual parameter sets into the bitstreamincludes: when the encoder identifies that the tool parameters and/orcontrol parameters for the current encoding slice are partially but notcompletely the same as the tool parameters and/or control parameters ofthe parameter set, the encoder sets a value of a syntax elementcorresponding to the ID of the parameter set in an SH of the currentencoding slice as a first preset value, and writes the first presetvalue into the bitstream using an entropy coding method; and/or theencoder sets a value of a syntax element corresponding to a parameterset ID in the parameter set including the tool parameters and/or thecontrol parameters as a second preset value, and writes the secondpreset value into the bitstream using the entropy coding method; whenthe encoder identifies that the tool parameters and/or controlparameters for the current encoding slice are completely different fromthe tool parameters and/or control parameters of the parameter set, theencoder generates a parameter set including the tool parameters and/orcontrol parameters for the current encoding slice; an ID is allocated tothe parameter set for the current encoding slice; and the value of thesyntax element corresponding to the ID of the parameter set in the SH ofthe current encoding slice is set to be the ID of the generatedparameter set, and the ID of the generated parameter set is written intothe bitstream using the entropy coding method.

In an example embodiment, the step that the encoder determines theparameter sets and/or virtual parameter sets for the slice includes: theencoder judges whether the tool parameters and/or control parameters forthe current encoding slice are partially but not completely the same asthe tool parameters and/or control parameters in the parameter sets ornot, and a virtual parameter set with tool parameters and/or controlparameters completely the same as the tool parameters and/or controlparameters for the current encoding slice is able to be constructed ornot; if a judgment result is positive, the encoder constructs a virtualparameter set by loading data in the existing parameter sets as thevirtual parameter set for the slice, and determines the ID of thevirtual parameter set for the slice; and if the judgment result isnegative, the encoder generates a parameter set including the toolparameters and/or the control parameters, and allocates an ID to thegenerated parameter set.

In an example embodiment, the step that the encoder writes the IDs ofthe parameter sets and/or virtual parameter sets into the bitstreamincludes: the encoder sets the value of the syntax element correspondingto the parameter set ID in the SH of the current encoding slice as theID of the generated virtual parameter set, and writes the value into thebitstream using an entropy coding method; and/or the encoder sets thevalue of the syntax element corresponding to the parameter set ID in theparameter set including the tool parameters and/or the controlparameters as the ID of the virtual parameter set, and writes the ID ofthe generated virtual parameter set into the bitstream using the entropycoding method; or the encoder sets the value of the syntax elementcorresponding to the parameter set ID in the SH of the current encodingslice as the ID of the generated parameter set, and writes the ID of thegenerated parameter set into the bitstream using the entropy codingmethod.

In an example embodiment, the tool parameters and/or the controlparameters are depth information parameters, and the tool parametersand/or the control parameters include at least one of: parameters for adigital presentation of depth information, attribute parameters forcamera imaging system and camera arrangement manner related parameters.

According to another embodiment of the disclosure, a method for decodingusing parameter sets is provided, which includes: a decoder generatesvirtual parameter sets, wherein the virtual parameter set is a datastructure which is generated by loading information acquired from abitstream into a data element structure of an existing parameter setand/or a preset data element structure and includes tool parametersand/or control parameters; the decoder allocates an identificationnumber (ID) to the virtual parameter set; and the decoder activates thevirtual parameter set according to the ID of the virtual parameter set,and configures tool parameters and/or control parameters for slicedecoding process according to parameters in the virtual parameter set.

In an example embodiment, before the decoder generates the virtualparameter set, the method further includes: the decoder determines thatone or more types of preset tool parameters and/or control parametersare able to be acquired from one or more independent elements in thebitstream.

In an example embodiment, before the decoder generates the virtualparameter set, the method further includes: the decoder acquires IDs ofparameter sets directly and/or indirectly referred to by a slice fromthe bitstream; and the decoder determines that the ID values of theparameter sets directly and/or indirectly referred to by the slice areout of a preset value range.

In an example embodiment, the step that the decoder generates thevirtual parameter set includes: the decoder generates the virtualparameter set by loading information acquired from one or moreindependent elements of the bitstream into a syntax structure of theexisting parameter set or a preset syntax structure, wherein the virtualparameter set includes all and/or a part of information included in theone or more independent elements in the bitstream.

In an example embodiment, the step that the decoder generates thevirtual parameter set by loading the information acquired from one ormore independent elements of the bitstream into the syntax structure ofthe existing parameter set or the preset syntax structure includes: thedecoder decomposes the ID of the parameter set directly or indirectlyreferred to by the slice into index numbers of the one or moreindependent elements for constructing the virtual parameter setaccording to the ID of the parameter set directly or indirectly referredto by the slice; and the decoder acquires the information from the oneor more independent elements in the bitstream according to the indexnumbers of the one or more independent elements, and generates thevirtual parameter set according to the syntax structure of the existingparameter set or the preset syntax structure.

In an example embodiment, the step that the decoder acquires theinformation from the one or more independent elements in the bitstreamaccording to the obtained index numbers of the independent elements, andgenerates the virtual parameter set according to the syntax structure ofthe existing parameter set or the preset syntax structure includes: thedecoder constructs the virtual parameter set by using all or a part oftool parameters and/or control parameters included in one or more frontindependent elements according to the parsing order of the index numbersof multiple independent elements.

In an example embodiment, the index numbers of the independent elementsare IDs of existing parameter sets.

In an example embodiment, the independent elements in the bitstream aredata elements divided by delimiters periodically appearing in thebitstream.

In an example embodiment, the data elements are Network AbstractionLayer (NAL) units.

In an example embodiment, the step that the decoder allocates the ID tothe virtual parameter set includes: the decoder allocates an ID reservedfor the virtual parameter set to the virtual parameter set.

In an example embodiment, the step that the decoder allocates the IDreserved for the virtual parameter set to the virtual parameter setincludes: the decoder allocates a reserved fixed numerical value to thevirtual parameter set as the ID of the virtual parameter set.

In an example embodiment, the step that the decoder allocates the ID tothe virtual parameter set includes: the decoder allocates a numericalvalue out of a preset range to the virtual parameter set as the ID ofthe virtual parameter set.

In an example embodiment, the step that the decoder allocates thenumerical value out of the preset range to the virtual parameter set asthe ID of the virtual parameter set includes: the decoder employs anumerical value of a parameter set ID out of the preset range in thebitstream of the slice as the ID of the virtual parameter set.

In an example embodiment, the method further includes: the decoderactivates an existing virtual parameter set.

In an example embodiment, the step that the decoder activates theexisting virtual parameter set includes: the decoder activates a virtualparameter set which is configured for current slice and has beengenerated before decoding the current slice with the same virtualparameter set ID; and the decoder configures the tool parameters and/orcontrol parameters for the slice decoding process using parameters inthe activated virtual parameter set.

According to still another embodiment of the disclosure, a device forencoding using parameter sets is also provided, which is applied to anencoder and includes: a first determination component, configured todetermine parameter sets and/or virtual parameter sets for a slice,wherein the virtual parameter set is a data structure which is generatedby loading information acquired from a bitstream into a syntax structureof an existing parameter set and/or a preset syntax structure andincludes tool parameters and/or control parameters; and a firstprocessing component, configured to write IDs of the parameter setsand/or virtual parameter sets into the bitstream.

In an example embodiment, the first determination component includes: afirst judgment component, configured to judge whether at least one ofthe following conditions meets or not: tool parameters and/or controlparameters for encoding current slice are the same as tool parametersand/or control parameters of the existing parameter set, the toolparameters and/or control parameters for encoding the current slice arethe same as tool parameters and/or control parameters in an existingvirtual parameter set; a second determination component, configured to,if a judgment result of the first judgment component is positive,determine the existing parameter set which is determined by the firstjudgment component to have the same tool parameters and/or controlparameters as the parameter set for the slice, and/or determine theexisting virtual parameter set which is determined by the first judgmentcomponent to have the same tool parameters and/or control parameters asthe virtual parameter set for the slice; and a third determinationcomponent, configured to, if the judgment result of the first judgmentcomponent is negative, employ a generated parameter set as the parameterset for the slice, and/or employ a constructed virtual parameter set asthe virtual parameter set for the slice.

In an example embodiment, the first processing component is configuredto write an ID of the parameter set which is determined by the firstjudgment component to have the same tool parameters and/or controlparameters and/or an ID of the virtual parameter set which is determinedby the first judgment component to have the same tool parameters and/orcontrol parameters into one of the following bitstreams: an SHbitstream, a bitstream employing the parameter set with the same toolparameters and/or control parameters and/or a bitstream employing thevirtual parameter set with the same tool parameters and/or controlparameters.

In an example embodiment, the first processing component includes: asecond judgment component, configured to identify that the toolparameters and/or control parameters for the current encoding slice arepartially but not completely the same as the tool parameters and/orcontrol parameters of the parameter set; a first setting component,configured to set a value of a syntax element corresponding to the ID ofthe parameter set in SH of the current encoding slice as a first presetvalue; a second processing component, configured to write the firstpreset value into the bitstream using an entropy coding method; and/or asecond setting component, configured to set a value of a syntax elementcorresponding to a parameter set ID of the parameter set including thetool parameters and/or the control parameters as a second preset value;a third processing component, configured to write the second presetvalue into the bitstream using the entropy coding method; a thirdjudgment component, configured to identify that the tool parametersand/or control parameters for the current encoding slice are completelydifferent from the tool parameters and/or control parameters of theparameter set; a first generation component, configured to generate aparameter set including the tool parameters and/or control parametersfor the current encoding slice; a first allocation component, configuredto allocate an ID to the parameter set for the current encoding slice; athird setting component, configured to set the value of the syntaxelement corresponding to the ID of the parameter set in the SH of thecurrent encoding slice to be the ID of the generated parameter set; anda fourth processing component, configured to write the ID of thegenerated parameter set into the bitstream using the entropy codingmethod.

In an example embodiment, the first determination component includes: afourth judgment component, configured to judge, by the encoder, whetherthe tool parameters and/or control parameters for the current encodingslice are partially but not completely the same as the tool parametersand/or control parameters in the parameter set or not, and a virtualparameter set with a tool parameters and/or control parameterscompletely the same as the tool parameters and/or control parameters forthe current encoding slice is able to be constructed or not; a fifthprocessing component, configured to, if a judgment result of the fourthjudgment component is positive, construct, by the encoder, a virtualparameter set based on data in the existing parameter sets as thevirtual parameter set for the slice; a fourth determination component,configured to determine the ID of the virtual parameter set for theslice; a second generation component, configured to, if the judgmentresult of the fourth judgment component is negative, generate aparameter set including the tool parameters and/or the controlparameters; and a second allocation component, configured to allocate anID to the generated parameter set.

In an example embodiment, the first processing component includes: afourth setting component, configured to set the value of the syntaxelement corresponding to the parameter set ID in the SH of the currentencoding slice as the ID of the generated virtual parameter set; a fifthprocessing component, configured to write the value into the bitstreamusing an entropy coding method; and/or a fifth setting component,configured to set the value of the syntax element corresponding to theparameter set ID in the parameter set including the tool parametersand/or the control parameters as the ID of the virtual parameter set; asixth processing component, configured to write the ID of the generatedvirtual parameter set into the bitstream using the entropy codingmethod; or a sixth setting component, configured to set the value of thesyntax element corresponding to the parameter set ID in the SH of thecurrent encoding slice as the ID of the generated parameter set; and aseventh processing component, configured to write the ID of thegenerated parameter set into the bitstream using the entropy codingmethod.

According to still another embodiment of the disclosure, a device fordecoding using parameter sets is also provided, which is applied to adecoder and includes: a third generation component, configured togenerate a virtual parameter set, wherein the virtual parameter set is adata structure which is generated by loading information acquired from abitstream into a data element structure of an existing parameter setand/or a preset data element structure and includes tool parametersand/or control parameters; a third allocation component, configured toallocate an ID to the virtual parameter set; a first activationcomponent, configured to activate the virtual parameter set according tothe ID of the virtual parameter set; and a first decoding component,configured to configure tool parameters and/or control parameters for aslice decoding process according to parameters in the virtual parameterset.

In an example embodiment, the device further includes: a fifth judgmentcomponent, configured to determine that one or more types of preset toolparameters and/or control parameters are able to be acquired from one ormore independent elements in the bitstream.

In an example embodiment, the device further includes: an acquisitioncomponent, configured to acquire IDs of parameter sets directly and/orindirectly referred to by a slice from the bitstream; and a sixthjudgment component, configured to determine that values of the IDs ofthe parameter sets directly and/or indirectly referred to by the sliceare out of a preset value range.

In an example embodiment, the third generation component is configuredto generate the virtual parameter set by loading information acquiredfrom one or more independent elements of the bitstream into a syntaxstructure of the existing parameter set or a preset syntax structure,wherein the virtual parameter set includes all and/or a part ofinformation included in the one or more independent elements in thebitstream.

In an example embodiment, the third generation component includes: adecomposition component, configured to decompose the ID of the parameterset directly or indirectly referred to by the slice into index numbersof the one or more independent elements for constructing the virtualparameter set according to the ID of the parameter set directly orindirectly referred to by the slice; and a fourth generation component,configured to acquire the information from the one or more independentelements in the bitstream according to the index numbers of the one ormore independent elements, and generate the virtual parameter setaccording to the syntax structure of the existing parameter set or thepreset syntax structure.

In an example embodiment, the fourth generation component is configuredto construct the virtual parameter set based on all or a part of toolparameters and/or control parameters included in one or more frontindependent elements according to the parsing order of the index numbersof multiple independent elements.

In an example embodiment, the third allocation component includes: afourth allocation component, configured to allocate an ID reserved forthe virtual parameter set to the virtual parameter set.

In an example embodiment, the fourth allocation component allocates areserved fixed numerical value to the virtual parameter set as the ID ofthe virtual parameter set.

In an example embodiment, the third allocation component includes: afifth allocation component, configured to allocate a numerical value outof a preset range to the virtual parameter set as the ID of the virtualparameter set.

In an example embodiment, the fifth allocation component is configuredto employ, by the decoder, a numerical value of a parameter set ID outof the preset range in the bitstream of the slice as the ID of thevirtual parameter set.

In an example embodiment, the device further includes: a secondactivation component, configured to activate an existing virtualparameter set.

In an example embodiment, the second activation component includes: athird activation component, configured to activate a virtual parameterset which is configured for current slice and has been generated beforedecoding the current slice with the same virtual parameter set ID; and asecond decoding component, configured to configure the tool parametersand/or control parameters for the slice decoding process usingparameters in the activated virtual parameter set.

According to still another embodiment of the disclosure, electronicequipment is also provided, which includes: the above-mentioned devicefor encoding using parameter sets and/or the above-mentioned device fordecoding using parameter sets.

According to the embodiments of the disclosure, the virtual parameterset is used to encode and decode data, so that the problem of relativelycomplex flows of methods for encoding and decoding using parameters inthe related art is solved, and the effect of improving encoding anddecoding efficiency is further achieved.

BRIEF DESCRIPTION OF THE DRAWINGS

The drawings are described here to provide further understanding of thedisclosure, and form a part of the disclosure. The schematic embodimentsand description of the disclosure are used to explain the disclosure,and do not form improper limits to the disclosure. In the drawings:

FIG. 1 is a flowchart of a method for encoding parameters according toan embodiment of the disclosure;

FIG. 2 is a flowchart of a method for decoding parameters according toan embodiment of the disclosure;

FIG. 3 is a structure diagram of a device for encoding parametersaccording to an embodiment of the disclosure;

FIG. 4 is an example structure diagram of a device for encodingparameters according to an embodiment of the disclosure;

FIG. 5 is a structure diagram of a device for decoding parametersaccording to an embodiment of the disclosure;

FIG. 6 is an example structure diagram of a device for decodingparameters according to an embodiment of the disclosure;

FIG. 7 is a structure diagram of electronic equipment according to anembodiment of the disclosure;

FIG. 8 is a flowchart of a method for decoding according to anembodiment of the disclosure;

FIG. 9 is a flowchart of a method for encoding according to anembodiment of the disclosure;

FIG. 10 is a first flowchart of a method for decoding according to anexample embodiment of the disclosure;

FIG. 11 is a first flowchart of a method for encoding according to anexample embodiment of the disclosure;

FIG. 12 is a second flowchart of a method for decoding according to anexample embodiment of the disclosure; and

FIG. 13 is a second flowchart of a method for encoding according to anexample embodiment of the disclosure;

DETAILED DESCRIPTION OF THE EMBODIMENTS

The disclosure is described below with reference to the drawings andembodiments in detail. It is important to note that the embodiments ofthe disclosure and the characteristics in the embodiments can becombined under the condition of no conflicts.

An example embodiment provides a method for encoding using parametersets. FIG. 1 is a flowchart of a method for encoding parametersaccording to an embodiment of the disclosure. As shown in FIG. 1, themethod includes the following Step S102 to Step S104.

Step S102: an encoder determines parameter sets and/or virtual parametersets for a slice, wherein the virtual parameter set is a data structurewhich is generated by loading information acquired from a bitstream intoa syntax structure of an existing parameter set and/or a preset syntaxstructure and includes tool parameters and/or control parameters.

Step S104: the encoder writes IDs of the parameter sets and/or virtualparameter sets into the bitstream.

By the steps, the encoder writes the IDs of the parameter sets and/orvirtual parameter sets for the slice into the bitstream, so that a flowof determining encoding parameters in an encoding process by the encodercan be simplified, and encoding and decoding efficiency is furtherimproved.

During implementation, the parameter sets and/or virtual parameter setsfor the slice may be determined in multiple manners. For example: toolparameters and/or control parameters for encoding current slice may bejudged whether to be the same as tool parameters and/or controlparameters of the existing parameter set and/or an existing virtualparameter set or not for determination. In an example embodiment, theencoder determines whether at least one of the following conditionsmeets or not: the tool parameters and/or control parameters for encodingthe current slice are the same as the tool parameters and/or controlparameters of the existing parameter set; and the tool parameters and/orcontrol parameters for encoding the current slice are the same as toolparameters and/or control parameters in an existing virtual parameterset. When the judgment result is positive, the encoder may determine theexisting parameter set with the same tool parameters and/or controlparameters as the parameter set for the slice, and/or determine theexisting virtual parameter set with the same tool parameters and/orcontrol parameters as the virtual parameter set for the slice. When thejudgment result is negative, the encoder may generate a parameter set orconstruct a virtual parameter set, employ the generated parameter set asthe parameter set for the slice and/or employ the constructed virtualparameter set as the virtual parameter set for the slice. By thisexample implementation mode, the use of the existing parameter set inthe encoding process is realized, so that encoding compatibility andefficiency are improved.

Corresponding to the example implementation mode, the IDs of theparameter sets and/or virtual parameter sets may be written into thebitstream in a manner as follows in order to improve the accuracy ofwriting of IDs into the bitstream. The encoder may write an ID of theparameter set with the same tool parameters and/or control parametersand/or an ID of the virtual parameter set with the same tool parametersand/or control parameters into one of the following bitstreams: an SHbitstream, a bitstream employing the parameter set with the same toolparameters and/or control parameters and/or a bitstream employing thevirtual parameter set with the same tool parameters and/or controlparameters.

During implementation, the IDs may be written into the bitstream inmanners as follows according to a relationship between the toolparameters and/or control parameters for the current encoding slice andthe tool parameters and/or control parameters of the parameter set.

Manner 1: when the tool parameters and/or control parameters for thecurrent encoding slice are identified to be partially but not completelythe same as the tool parameters and/or control parameters of theparameter set, the encoder sets a value of a syntax elementcorresponding to the ID of the parameter set in an SH of the currentencoding slice (i.e., the slice currently being processed by theencoder) as a first preset value, and writes the first preset value intothe bitstream using an entropy coding method; and/or the encoder sets avalue of a syntax element corresponding to a parameter set ID of theparameter set including the tool parameters and/or the controlparameters as a second preset value, and writes the second preset valueinto the bitstream using the entropy coding method.

Manner 2: when the encoder identifies that the tool parameters and/orcontrol parameters for the current encoding slice are completelydifferent from the tool parameters and/or control parameters of theparameter set, the encoder generates a parameter set including the toolparameters and/or control parameters for the current encoding slice; anID is allocated to the parameter set for the current encoding slice; andthe value of the syntax element corresponding to the ID of the parameterset in the SH of the current encoding slice is set to be the ID of thegenerated parameter set, and the ID of the generated parameter set iswritten into the bitstream using the entropy coding method.

During implementation, the parameter sets and/or virtual parameter setsfor the slice may also be determined by the encoder in a manner ofjudging whether the tool parameters and/or control parameters for thecurrent encoding slice are partially but not completely the same as thetool parameters and/or control parameters in the parameter set or not,and a virtual parameter set with a tool parameters and/or controlparameters completely the same as the tool parameters and/or controlparameters for the current encoding slice is able to be constructed ornot.

Manner 1: when the judgment result is positive, the encoder mayconstruct a virtual parameter set by loading data in the existingparameter sets as the virtual parameter set for the slice, and determinethe ID of the virtual parameter set for the slice.

Manner 2: when the judgment result is negative, the encoder generates aparameter set including the tool parameters and/or the controlparameters, and allocates an ID to the generated parameter set.

Corresponding to the example implementation mode, the encoder may writethe IDs of the parameter sets and/or virtual parameter sets into thebitstream in one of manners as follows.

Manner 1: the encoder sets values of a syntax element corresponding tothe ID of the parameter set in the SHs included in an Access Element(AU) where the current encoding slice is located as an ID of thegenerated virtual parameter set, and writes the value into the bitstreamusing an entropy coding method; and/or the encoder sets the value of thesyntax element corresponding to the parameter set ID in the parameterset including the tool parameters and/or the control parameters as theID of the virtual parameter set, and writes the ID of the generatedvirtual parameter set into the bitstream using the entropy codingmethod.

Manner 2: the encoder sets the value of the syntax element correspondingto the parameter set ID in the SH of the current encoding slice as theID of the generated parameter set, and writes the ID of the generatedparameter set into the bitstream using the entropy coding method.

As an example implementation mode, the tool parameters and/or thecontrol parameters are depth information parameters, and the toolparameters and/or the control parameters includes at least one of:parameters for depth information digital presentation, attributeparameters of camera imaging system and camera arrangement mannerrelated parameters.

An example embodiment provides a method for decoding using parametersets. FIG. 2 is a flowchart of a method for decoding parametersaccording to an embodiment of the disclosure. As shown in FIG. 2, themethod includes the following Step S202 to Step S206.

Step S202: a decoder generates a virtual parameter set, wherein thevirtual parameter set is a data structure which is generated by loadinginformation acquired from a bitstream into a data element structure ofan existing parameter set and/or a preset data element structure andincludes tool parameters and/or control parameters.

Step S204: the decoder allocates an ID to the virtual parameter set.

Step S206: the decoder activates the virtual parameter set according tothe ID of the virtual parameter set, and configures tool parametersand/or control parameters for slice decoding process according toparameters in the virtual parameter set.

By the steps, the decoder generates a virtual parameter set, allocatesan ID to the parameter set, activates the virtual parameter setaccording to the ID, and configures tool parameters and/or controlparameters for the slice decoding process according to parameters in thevirtual parameter set, so that a flow of determining decoding parametersby the decoder in a decoding process can be simplified, and decodingefficiency is further improved.

As an example implementation mode, in order to improve the decodingefficiency, before Step S202, the decoder may also determine that one ormore types of preset tool parameters and/or control parameters are ableto be acquired from one or more independent elements in the bitstream.

As an example implementation mode, in order to improve the decodingefficiency, before Step S202, the decoder may also acquire an ID of aparameter set directly and/or indirectly referred to by a slice from thebitstream; and the decoder determines that values of the IDs of theparameter sets directly and/or indirectly referred to by the slice areout of a preset value range.

During implementation, the decoder may generate the virtual parameterset in multiple implementation modes. For example: the decoder generatesthe virtual parameter set by loading information acquired from one ormore independent elements of the bitstream into a syntax structure ofthe existing parameter set or a preset syntax structure, wherein thevirtual parameter set includes all and/or a part of information includedin the one or more independent elements in the bitstream. In an exampleembodiment, the decoder may decompose the ID of the parameter setdirectly or indirectly referred to by the slice into index numbers ofthe one or more independent elements for constructing the virtualparameter set according to the ID of the parameter set directly orindirectly referred to by the slice; and the decoder acquires theinformation from the one or more independent elements in the bitstreamaccording to the index numbers of the one or more independent elements,and generates the virtual parameter set according to the syntaxstructure of the existing parameter set or the preset syntax structure.

In an example embodiment, in order to improve decoding accuracy, thedecoder may construct the virtual parameter set based on all or a partof tool parameters and/or control parameters included in one or morefront independent elements according to parsing order of the indexnumbers of multiple independent elements.

In an example embodiment, the index numbers of the independent elementsare IDs of existing parameter sets.

In an example embodiment, the independent elements in the bitstream aredata elements divided by delimiters periodically appearing in thebitstream. In an example embodiment, the data elements are NAL units.

As an example implementation mode, the decoder may allocate the ID tothe virtual parameter set in one of manners as follows.

Manner 1: the decoder allocates an ID reserved for the virtual parameterset to the virtual parameter set. In an example embodiment, the decoderallocates a reserved fixed numerical value to the virtual parameter setas the ID of the virtual parameter set.

Manner 2: the decoder allocates a numerical value out of a preset rangeto the virtual parameter set as the ID of the virtual parameter set. Inan example embodiment, the decoder employs a numerical value of aparameter set ID out of the preset range in the bitstream of the sliceas the ID of the virtual parameter set.

As an example implementation mode, the method may further include: thedecoder activates an existing virtual parameter set. In an exampleembodiment, the step may be implemented in a manner as follows: thedecoder activates a virtual parameter set configured for current slice,which is generated before decoding the current slice and has the samevirtual parameter set ID; and the decoder configures the tool parametersand/or control parameters for the slice decoding process usingparameters in the activated virtual parameter set.

It should be noted that the steps shown by the flowchart in the drawingcan be executed in a computer system, such as a group of computers,capable of executing an instruction, and moreover, a logic sequence isshown in the flowchart, but the shown or described steps can be executedin a sequence different from the logic sequence under a certaincondition.

In another embodiment, software for encoding using parameter sets isalso provided, which is configured to execute the technical solutionsdescribed by the abovementioned embodiments and example embodiments.

In another embodiment, a storage medium is also provided, in which thesoftware for encoding using parameter sets is stored, wherein thestorage medium includes, but not limited to: an optical disk, a floppydisk, a hard disk, an erasable memory and the like.

An embodiment of the disclosure provides a device for encoding usingparameter sets, which may be applied to an encoder. The device forencoding using parameter sets may be configured to implement the methodfor encoding using parameter sets and the example implementation modes,that what has been described will not be repeated, and componentsinvolved in the device for encoding using parameter sets are describedbelow. For example, a term “component”, used below, is a combination ofsoftware and/or hardware for realizing preset functions. The systems andmethods described in the following embodiment are preferably implementedby software, but the implementation of the systems and the methods withhardware or the combination of software and hardware is also possibleand conceived.

FIG. 3 is a structure diagram of a device for encoding parametersaccording to an embodiment of the disclosure. As shown in FIG. 3, thedevice includes: a first determination component 32 and a firstprocessing component 34. The structure is described below in detail.

The first determination component 32 is configured to determineparameter sets and/or virtual parameter sets for a slice, wherein thevirtual parameter set is a data structure which is generated by loadinginformation acquired from a bitstream into a syntax structure of anexisting parameter set and/or a preset syntax structure and includestool parameters and/or control parameters; and the first processingcomponent 34 is coupled with the first determination component 32, andis configured to write IDs of the parameter sets and/or virtualparameter sets determined by the first determination component 32 intothe bitstream.

FIG. 4 is an example structure diagram of a device for encodingparameters according to an embodiment of the disclosure. As shown inFIG. 4, the example structure diagram of the device for encoding theparameters includes a first determination component 32 and a firstprocessing component 34. The structure is described below in detail.

The first determination component 32 includes:

a first judgment component 320, configured to judge whether at least oneof the following conditions meets or not: tool parameters and/or controlparameters for encoding current slice are the same as tool parametersand/or control parameters of the existing parameter set, the toolparameters and/or control parameters for encoding the current slice arethe same as tool parameters and/or control parameters in an existingvirtual parameter set; a second determination component 321, coupledwith the first judgment component 320 and configured to, if a judgmentresult of the first judgment component 320 is positive, determine theexisting parameter set which is determined by the first judgmentcomponent to have the same tool parameters and/or control parameters asthe parameter set for the slice, and/or determine the existing virtualparameter set which is determined by the first judgment component tohave the same tool parameters and/or control parameters as the virtualparameter set for the slice; and a third determination component 323,coupled with the first judgment component 320 and configured to, if thejudgment result of the first judgment component 320 is negative, employa generated parameter set as the parameter set for the slice, and/oremploy a constructed virtual parameter set as the virtual parameter setfor the slice.

In an example embodiment, the first processing component 34 isconfigured to write an ID of the parameter set which is determined bythe first judgment component 322 to have the same tool parameters and/orcontrol parameters and/or an ID of the virtual parameter set which isdetermined by the first judgment component 320 to have the same toolparameters and/or control parameters into one of the followingbitstreams: an SH bitstream, a bitstream including the parameter setwith the same tool parameters and/or control parameters and/or abitstream including the virtual parameter set with the same toolparameters and/or control parameters.

In an example embodiment, the first processing component 34 includes:

a second judgment component 340, configured to identify that the toolparameters and/or control parameters for the current encoding slice arepartially but not completely the same as the tool parameters and/orcontrol parameters of the parameter set; a first setting component 341,configured to set a value of a syntax element corresponding to the ID ofthe parameter set in an SH of the current encoding slice as a firstpreset value; a second processing component 342, configured to write thefirst preset value into the bitstream using an entropy coding method;and/or a second setting component 343, configured to set a value of asyntax element corresponding to a parameter set ID of the parameter setincluding the tool parameters and/or the control parameters as a secondpreset value; a third processing component 344, configured to write thesecond preset value into the bitstream using the entropy coding method;

a third judgment component 345, configured to identify that the toolparameters and/or control parameters for the current encoding slice arecompletely different from the tool parameters and/or control parametersof the parameter set; a first generation component 346, coupled with thethird judgment component 345 and configured to generate a parameter setincluding the tool parameters and/or control parameters for the currentencoding slice; a first allocation component 347, coupled with the firstgeneration component 346 and configured to allocate an ID to theparameter set for the current encoding slice; a third setting component348, coupled with the first allocation component 347 and configured toset the value of the syntax element corresponding to the ID of theparameter set in the SH of the current encoding slice to be the ID ofthe generated parameter set; and a fourth processing component 349,coupled with the third setting component 348 and configured to write theID of the generated parameter set into the bitstream using the entropycoding method.

In an example embodiment, the first determination component 32 includes:

a fourth judgment component 323, configured to judge, by the encoder,whether the tool parameters and/or control parameters for the currentencoding slice are partially but not completely the same as the toolparameters and/or control parameters in the parameter set or not, and avirtual parameter set with a tool parameters and/or control parameterscompletely the same as the tool parameters and/or control parameters forthe current encoding slice is able to be constructed or not; a fifthprocessing component 324, coupled with the fourth judgment component 323and configured to, if a judgment result of the fourth judgment component323 is positive, construct, by the encoder, a virtual parameter setbased on data in the existing parameter set as the virtual parameter setfor the slice; a fourth determination component 325, configured todetermine the ID of the virtual parameter set for the slice;

a second generation component 326, coupled with the fourth judgmentcomponent 323 and configured to, if the judgment results of the fourthjudgment component 323 are negative, generate a parameter set includingthe tool parameters and/or the control parameters; and a secondallocation component 327, coupled with the second generation component326 and configured to allocate an ID to the generated parameter set.

In an example embodiment, the first processing component 34 includes:

a fourth setting component 350, configured to set the value of thesyntax element corresponding to the parameter set ID in the SH of thecurrent encoding slice as the ID of the generated virtual parameter set;a fifth processing component 351, configured to write the value into thebitstream using an entropy coding method; and/or a fifth settingcomponent 352, configured to set the value of the syntax elementcorresponding to the parameter set ID in the parameter set including thetool parameters and/or the control parameters as the ID of the virtualparameter set; a sixth processing component 353, configured to write theID of the generated virtual parameter set into the bitstream using theentropy coding method; or

a sixth setting component 354, configured to set the value of the syntaxelement corresponding to the parameter set ID in the SH of the currentencoding slice as the ID of the generated parameter set; and a seventhprocessing component 355, coupled with the sixth setting component 354and configured to write the ID of the generated parameter set into thebitstream by virtue of the entropy coding method.

In another embodiment, software for decoding using parameter sets isalso provided, which is configured to execute the technical solutionsdescribed in the abovementioned embodiments and example embodiments.

In another embodiment, a storage medium is also provided, in which thesoftware for decoding using a parameter set is stored, wherein thestorage medium includes, but not limited to: an optical disk, a floppydisk, a hard disk, an erasable memory and the like.

An embodiment of the disclosure provides a device for decoding usingparameter sets. The device for decoding using parameter sets may beconfigured to implement the method for decoding using parameter sets andthe example implementation modes, that what has been described will notbe repeated, and components involved in the device for decoding usingparameter sets are described below. For example, a term “component”,used below, is a combination of software and/or hardware for realizingpreset functions. The system and method described in the followingembodiment are preferably implemented by software, but theimplementation of the system and the method with hardware or thecombination of software and hardware is also possible and conceived.

FIG. 5 is a structure diagram of a device for decoding parametersaccording to an embodiment of the disclosure. As shown in FIG. 5, thedevice includes: a third generation component 52, a third allocationcomponent 54, a first activation component 56 and a first decodingcomponent 58. The structure is described below in detail.

The third generation component 52 is configured to generate virtualparameter sets, wherein the virtual parameter set is a data structurewhich is generated by loading information acquired from a bitstream intoa data element structure of an existing parameter set and/or a presetdata element structure and includes tool parameters and/or controlparameters; the third allocation component 54 is coupled with the thirdgeneration component 52, and is configured to allocate an ID to thevirtual parameter set; the first activation component 56 is coupled withthe third allocation component 54, and is configured to activate thevirtual parameter set according to the ID, which is allocated by thethird allocation component 54, of the virtual parameter set; and thefirst decoding component 58 is coupled with the first activationcomponent 56, and is configured to configure tool parameters and/orcontrol parameters for slice decoding process according to parameters inthe virtual parameter set.

FIG. 6 is an example structure diagram of a device for decodingparameters according to an embodiment of the disclosure. As shown inFIG. 6, the device further includes: a fifth judgment component 62, anacquisition component 64 and a sixth judgment component 66. The thirdgeneration component 52 includes: a decomposition component 522 and afourth generation component 524. The third allocation component 54includes: a fourth allocation component 542 and a fifth allocationcomponent 544. The device further includes: a second activationcomponent 68, wherein the second activation component 68 includes: athird activation component 682 and a second decoding component 684. Thestructure is described below in detail.

In an example embodiment, the device further includes: the fifthjudgment component 62, configured to determine that one or more types ofpreset tool parameters and/or control parameters are able to be acquiredfrom one or more independent elements in the bitstream.

In an example embodiment, the device further includes: the acquisitioncomponent 64, configured to acquire an IDs of parameter sets directlyand/or indirectly referred to by a slice from the bitstream; and thesixth judgment component 66, coupled with the acquisition component 64and configured to determine that values of the IDs, which are acquiredby the acquisition component 64, of the parameter sets directly and/orindirectly referred to by the slice are out of a preset value range.

In an example embodiment, the third generation component 52 isconfigured to generate the virtual parameter set by loading informationacquired from one or more independent elements of the bitstream into asyntax structure of the existing parameter set or a preset syntaxstructure, wherein the virtual parameter set includes all and/or a partof information included in the one or more independent elements in thebitstream.

The third generation component 52 includes: the decomposition component522, configured to decompose the ID of the parameter set directly orindirectly referred to by the slice into index numbers of the one ormore independent elements for constructing the virtual parameter setaccording to the ID of the parameter set directly or indirectly referredto by the slice; and the fourth generation component 524, coupled withthe decomposition component 522 and configured to acquire theinformation from the one or more independent elements in the bitstreamaccording to the index numbers of the one or more independent elements,and generate the virtual parameter set according to the syntax structureof the existing parameter set or the preset syntax structure.

In an example embodiment, the fourth generation component 524 isconfigured to construct the virtual parameter set based on all or a partof tool parameters and/or control parameters included in one or morefront independent elements according to a parsing order of the indexnumbers of multiple independent elements.

In an example embodiment, the third allocation component 54 includes:the fourth allocation component 542, configured to allocate an IDreserved for the virtual parameter set to the virtual parameter set. Inan example embodiment, the fourth allocation component 542 is configuredto allocate a reserved fixed numerical value to the virtual parameterset as the ID of the virtual parameter set.

In an example embodiment, the third allocation component 54 includes:the fifth allocation component 544, configured to allocate a numericalvalue out of a preset range to the virtual parameter set as the ID ofthe virtual parameter set. In an example embodiment, the fifthallocation component 544 is configured to employ, by the decoder, anumerical value of a parameter set ID out of the preset range in thebitstream of the slice as the ID of the virtual parameter set.

In an example embodiment, the device further includes: the secondactivation component 68, configured to activate an existing virtualparameter set.

In an example embodiment, the second activation component 68 includes:the third activation component 682, configured to activate virtualparameter sets configured for current slice, which is generated beforedecoding the current slice and has the same virtual parameter set ID;and the second decoding component 684, coupled with the third activationcomponent 682 and configured to configure the tool parameters and/orcontrol parameters for the slice decoding process using parameters inthe activated virtual parameter set.

An embodiment of the disclosure provides electronic equipment. FIG. 7 isa structure diagram of electronic equipment according to an embodimentof the disclosure. As shown in FIG. 7, the electronic equipment includesa device 2 (as shown in FIG. 3 or 4) for encoding using parameter setsand/or a device 4 (as shown in FIG. 5 or 6) for decoding using parametersets.

Description is given below with reference to example embodiments, andthe following example embodiments combine the abovementioned embodimentsand example embodiments.

Example Embodiment 1

The example embodiment provides a method for decoding using virtualparameter sets. FIG. 8 is a flowchart of a method for decoding accordingto an embodiment of the disclosure. As shown in FIG. 8, the methodincludes the following Step 802 to Step 806.

Step 802: a decoder generates a virtual parameter set including aparameter set ID.

Step 804: the decoder directly or indirectly refers to the virtualparameter set according to the parameter set ID.

Step 806: the decoder activates the virtual parameter set following themethod consistent with the method for activating a conventionalparameter set, and acquires parameters required by current slicedecoding process from the virtual parameter set.

Example Embodiment 2

The example embodiment provides a method for encoding using virtualparameter sets. FIG. 9 is a flowchart of a method for encoding accordingto an embodiment of the disclosure. As shown in FIG. 9, the methodincludes the following Step 902 to Step 906.

Step 902: an encoder determines parameters for slice encoding process.

Step 904: the encoder determines parameter sets and/or virtual parametersets for current slice based on coded parameter sets and/or virtualparameter sets.

Step 906: the encoder writes IDs of the parameter sets and/or virtualparameter sets into a bitstream.

In an example embodiment, in the embodiment, existing information in abitstream may be combined to generate a virtual parameter set includinga parameter set ID according to a syntax structure of a conventionalparameter set or an independently designed syntax structure.

In an example embodiment, in the bitstream, data of the parameter setare located in one independent NAL unit with a specific type ID, butdata of the virtual parameter set may be from one or more differenttypes of NAL units.

In an example embodiment, a method for operating the virtual parameterset at slice layer is the same as the method for operating an ordinaryparameter set. The slice layer directly or indirectly refers to thevirtual parameter sets according to the parameter set IDs. When acertain virtual parameter set is referred to, the virtual parameter setis activated by the method in the same way as that for the ordinaryparameter set, and parameters required by current slice decoding processare acquired from the virtual parameter set.

It should be noted that with the use of the virtual parameter sets,special flows are not required to be set for certain specific parameterset IDs in a process of referring to the parameter set at slice layerand parameter set activation process; additional flags are not requiredto be introduced at slice layer with special conditional processingflows; and when activating ordinary parameter sets and/or virtualparameter sets, the decoder can clearly identify the decoding processesto which the data in parameter sets are applied, without referencing tothe syntax elements following the parameter set IDs at slice layer inparsing order to determine and execute the corresponding additionaljudgments and operations.

An encoder implementation method in each following embodiment is onlyone of possible encoder implementation methods under the embodiment, andany encoder capable of generating a bitstream meeting a requirement ofthe encoding process in the embodiment may implement an encoderimplementation method in the embodiment.

Example Embodiment 3

A method for organizing a subset SPS, a DPS and SH bitstream in theexample embodiment is the same as a conventional 3D-AVC method.

FIG. 10 is a flowchart of a method for decoding according to an exampleembodiment of the disclosure. As shown in FIG. 10, the method fordecoding in the embodiment includes the following Step S1001 to StepS1006.

Step S1001: a decoder parses an SH, and determines an ID of a subset SPSreferred to by a slice.

The decoder reads a bitstream of the SH from a received bitstream, andparses pic_parameter_set_id of a Picture Parameter Set (PPS) referred toby a current slice using an entropy decoding method corresponding toue(v).

The decoder sets a PPS with its ID value equal to pic_parameter_set_idto be “active”. The decoder parses a bitstream of the PPS, and parsesseq_parameter_set_id of a subset SPS referred to by the PPS using theentropy decoding method corresponding to ue(v).

The decoder sets a value of seq_parameter_set_id to be a value of the IDof the subset SPS referred to by the current slice.

Step S1002: the decoder parses a subset SPS corresponding to the ID, andactivates the parameter set.

Step S1003: the decoder judges whether the subset SPS includes DPs ornot. If the subset SPS includes DPs, Step S1004 is executed; otherwise,Step S1005 is executed.

Step S1004: the decoder generates a virtual parameter set, and executesStep S1005.

The decoder constructs a virtual DPS according to a DPS syntax elementorganization structure and method based on the DPs in the activatedsubset SPS, and sets an ID of the virtual DPS to be 0.

Alternatively, the decoder may construct the virtual DPS according to apreset syntax element organization method based on the DPs in theactivated subset SPS, and sets the ID of the virtual DPS to be 0.

The preset syntax element organization method may be any representationmethod for DP data, such as a representation method for directly listingZFar, ZNear and camera parameters or a representation method ofsplitting the ZFar, the ZNear and the camera parameters into integerparts and decimal parts.

Step S1005: the decoder continues parsing other syntax elements in theSH. If a slice layer refers to the DPS through the DPS ID, thecorresponding DPS (including the virtual DPS) is parsed and activated.

When the decoder determines that DRWP and/or VSP are used in decodingthe current slice, the decoder refers to the DPS via the DPS ID in thedecoding process.

The decoder parses the dps_id of the DPS referred to by the currentslice using the entropy decoding method corresponding to ue(v).

The decoder sets a DPS or virtual DPS with its ID value equal to dps_idto be “active”, and acquires DPs used in decoding of the current slicefrom the currently activated DPS or virtual DPS using the conventionaldata processing method for an activated parameter set in 3D-AVC.

Step S1006: the decoder continues parsing the syntax elements in the SH.

FIG. 11 is a flowchart of a method for encoding according to an exampleembodiment of the disclosure. As shown in FIG. 11, the method forencoding in the embodiment includes the following Step S1101 to StepS1110.

Step S1101: an encoder determines DPs to be written into a subset SPS,and writes the DPs into the subset SPS.

For a non-real time application (such as storage playing), the encoderscans DPs required by the entire sequence, employs the DPs for mostframes as the DPs to be written into the subset SPS, and writes the DPsinto the subset SPS according to an organization method and entropycoding method for syntax elements related to these DPs in the subsetSPS.

For an application tolerant to a certain time delay, the encoder startsscanning from a first frame of a sequence to a specified moment (such asa time delay upper limit), employs DPs for most frames as the DPs to bewritten into the subset SPS, and writes the DPs into the subset SPSaccording to the organization method and entropy coding method for thesyntax elements related to these DPs in the subset SPS.

For a low delay application (such as a video conference), the encoderdirectly employs DPs of the first frame of the sequence as the DPs to bewritten into the subset SPS, and writes the DPs into the subset SPSaccording to the organization method and entropy coding method for thesyntax elements related to these DPs in the subset SPS.

Step S1102: the encoder determines DPs used for an access unit (AU)where current slice is located.

The encoder may directly obtain camera parameters at the sampling timeinstant of the picture containing the current slice in current AU froman external control element.

If depth information is directly acquired from a depth camera, theencoder may acquire parameter values such as ZFar and ZNear at thesampling time instant of the picture containing the current slice in thecurrent AU from a depth information processing element of the depthcamera or a depth information processing element of a system.

If the depth information is estimated from 3DV video and information,the encoder can acquire the parameter values such as ZFar and ZNear atthe sampling time instant of the picture containing the current slice inthe current AU from a 3DV preprocessing element of the system.

The encoder acquires information such as ZFar, ZNear and the cameraparameters from system equipment, and employs the information as the DPsfor the AU containing the current slice.

Step S1103: the encoder judges whether the DPs for the current AU arethe same as the DPs in the subset SPS or not. If the DPs for the currentAU are the same as the DPs in the subset SPS, Step S1104 is executed;otherwise, Step S1105 is executed.

Step S1104: the encoder sets values of syntax elements dps_id in all SHsof the slices included in the current AU to be 0, and writes the valuesinto bitstream using an entropy coding method corresponding to ue(v).Step S1106 is executed.

Step S1105: the encoder determines a DPS for the slice in the currentAU, sets a value of a syntax element dps_id in the SH to be an ID valueof the used DPS, and writes the value into the bitstream. Step S1106 isexecuted.

If the DPs for the current AU are the same as the DPs included in acertain coded DPS, the value of the syntax element dps_id in the SH isset to be the ID value of the DPS, and the value of dps_id is writteninto the bitstream using the entropy coding method corresponding toue(v).

If the DPs for the current AU are different from DPs included inexisting coded DPSs, a new DPS is generated using the method in 3D-AVC.DP information is written into the DPS, and an ID value is allocated tothe DPS. The encoder sets the value of the syntax element dps_id in theSH to be the ID value of the DPS, and the value of dps_id is writteninto the bitstream using the entropy coding method corresponding toue(v).

Step S1106: the encoder continues encoding the slice included in thecurrent AU.

Example Embodiment 4

The syntax structures for subset SPS, DPS and SH in this exampleembodiment are the same as those in 3D-AVC method.

FIG. 12 is a flowchart of a method for decoding according to an exampleembodiment of the disclosure. As shown in FIG. 12, the method fordecoding in the example embodiment includes the following Step S1201 toStep S1206.

Step S1201: a decoder parses SH, and determines an ID of a subset SPSreferred to by a slice.

The decoder reads a bitstream of the SH from a received bitstream, andparses pic_parameter_set_id of a PPS referred to by current slice usingan entropy decoding method corresponding to ue(v).

The decoder sets a PPS with its ID value equal to pic_parameter_set_idto be “active”. The decoder parses bitstream of the PPS, and parsesseq_parameter_set_id of a subset SPS referred to by the PPS using theentropy decoding method corresponding to ue(v).

The decoder sets a value of seq_parameter_set_id to be a value of the IDof the subset SPS referred to by the current slice.

Step S1202: the decoder parses a subset SPS corresponding to the ID, andactivates the parameter set.

Step S1203: the decoder judges whether the subset SPS includes DPs ornot. If the subset SPS includes DPs, Step S1204 is executed; otherwise,Step S1205 is executed.

Step S1204: the decoder generates a virtual parameter set, and executesStep S1205.

The decoder constructs a virtual DPS according to a DPS syntax elementorganization structure and method based on the DPs in the activatedsubset SPS, and sets an ID of the virtual DPS to be 0.

Alternatively, the decoder may construct the virtual DPS according to apreset syntax element organization method based on the DPs in theactivated subset SPS, and sets the ID of the virtual DPS to be 0.

The preset syntax element organization method may be any representationmethod for DP data, such as a representation method for directly listingZFar, ZNear and camera parameters or a representation method ofsplitting the ZFar, the ZNear and the camera parameter into integerparts and decimal parts.

Step S1205: the decoder continues parsing the SH. If a slice layerrefers to the DPS through the DPS ID, the syntax element dps_id isparsed.

When the decoder determines that DRWP and/or VSP are used in decodingthe current slice, the decoder determines to refer to the DPS via theDPS ID in the decoding process.

The decoder parses the dps_id of the DPS referred to by the currentslice using the entropy decoding method corresponding to ue(v).

Step S1206: the decoder judges whether the value of dps_id is greaterthan a maximum allowable value DPS_ID_MAX of the DPS ID in the bitstreamor not. If the value of dps_id is greater than DPS_ID_MAX, Step S1207 isexecuted; otherwise, Step S1209 is executed.

A value of DPS_ID_MAX is positive integer power of 2.

The value of DPS_ID_MAX may be a fixed value, and different values canbe set for combinations of different Profiles and different Levels inProfile/Level, or the value of DPS_ID_MAX is coded and transmitted inanother parameter set (such as subset SPS).

Step S1207: the encoder converts dps_id into multiple DPS IDs.

The decoder assigns the value of dps_id to a temporary variabletempDpsId. The decoder converts a numerical value corresponding totempDpsId into a binary value, reads log 2(DPS_ID_MAX) bits from LeastSignificant Bit (LSB) to Most Significant Bit (MSB), and employs adecimal numerical value corresponding to these bits as dpsId[0]. Dataobtained by removing the log 2(DPS_ID_MAX) bits from tempDpsId isreassigned to tempDpsId.

If a value of tempDpsId is smaller than DPS_ID_MAX, its decimalnumerical value is employed as dpsId[1]. On the contrary, if the valueof tempDpsId is still greater than DPS_ID_MAX, the above operation isrepeated, and the decoder converts the numerical value corresponding totempDpsId into binary value, reads log 2(DPS_ID_MAX) bits from LSB toMSB, and employs a decimal numerical value corresponding to the bits asdpsId[1]. The decoder reassigns data obtained by removing the log2(DPS_ID_MAX) bits from tempDpsId to tempDpsId.

The decoder can obtain multiple DPS ID values, i.e. dpsId[0], dpsId[1],. . . , dpsId[n−1], by decomposing dps_id by repeating the above flow,and the data of the corresponding DPS is stored in dpsContent[dpsId[i]],wherein i is 0, 1, . . . , n−1.

Step S1208: the decoder constructs a virtual DPS using multiple DPSs,and sets an ID value of the virtual DPS to be equal to dps_id. StepS1209 is executed.

The decoder constructs the virtual DPS according to the DPS syntaxstructure using the DPs in the activated subset SPS, and sets the ID ofthis virtual DPS to be 0.

Alternatively, the decoder may construct the virtual DPS according tothe preset syntax structure using the DPs in the activated subset SPS,and sets the ID of the virtual DPS to be 0.

The preset syntax element organization method may be any representationmethod for DP data, such as a representation method for directly listingZFar, ZNear and camera parameters or a representation method ofsplitting the ZFar, the ZNear and the camera parameter into integerparts and decimal parts.

The decoder allocates a storage space dpsContent[dps_id] to the virtualDPS, and initializes the storage space as follows: each data parameterin the DPS does not exist, that is, a flag of each data parameter is setto be 0.

The decoder determines data in the virtual DPS using the pseudo code asfollows:

for (i=0; i<n; i++)

-   -   mergeDps(dpsContent[dps_id], dpsContent[dpsId[i]]);        wherein mergeDps(dpsA, dpsB) functions as follows: if a value of        a flag indicating whether a certain data parameter in dpsA        exists or not is 0, the flag for the data parameter and value of        the data parameter in dpsA are set to be equal to the        counterpart flag and the counterpart data parameter in dpsB.

Step S1209: the decoder sets the DPS or virtual DPS with its ID valueequal to dps_id to be “active”, and acquires the DPs for the decoding ofthe current slice from the currently activated DPS or virtual DPS usingthe conventional data processing method for the activated parameter setin 3D-AVC.

Step S1210: the decoder continues parsing syntax elements in the SH.

Particularly, the following method may be used by the decoder. For StepS1206, the decoder judges whether the value of dps_id is greater thanthe maximum admissible value DPS_ID_MAX of the DPS ID in the bitstreamor not, and if the judgment result is positive and the decoder hasgenerated the virtual parameter set of which the ID value is equal todps_id before decoding the current slice, the decoder may skip StepS1207 and Step S1208, and directly activate the generated virtualparameter set with its ID value equal to dps_id.

FIG. 13 is a second flowchart of a method for encoding according to anexample embodiment of the disclosure. As shown in FIG. 13, the methodfor encoding in the embodiment of the disclosure includes the followingStep S1301 to Step S1306.

Step S1301: an encoder determines DPs to be written into a subset SPS,and writes the DPs into the subset SPS.

For a non-real time application (such as storage playing), the encoderscans DPs required by the entire sequence, employs the DPs for mostframes as the DPs to be written into the subset SPS, and writes the DPsinto the subset SPS according to an organization method and entropycoding method for syntax elements related to these DPs in the subsetSPS.

For an application tolerant to a certain time delay, the encoder startsscanning from the first frame of a sequence to a specified moment (suchas a time delay upper limit), employs DPs for most frames as the DPs tobe written into the subset SPS, and writes the DPs into the subset SPSaccording to the organization method and entropy coding method for thesyntax elements related to these DPs in the subset SPS.

For a low delay application (such as a video conference), the encoderdirectly employs DPs of the first frame of the sequence as the DPs to bewritten into the subset SPS, and writes the DPs into the subset SPSaccording to the organization method and entropy coding method for thesyntax elements related to these DPs in the subset SPS.

Step S1302: the encoder determines DPs used for an AU where a currentencoding slice is located.

The encoder may directly obtain camera parameters at the sampling timeinstant of the picture containing the current slice in current AU froman external control element.

If depth information is directly acquired from a depth camera, theencoder may acquire parameter values such as ZFar and ZNear at thesampling time instant of the picture containing the current slice in thecurrent AU from a depth information processing element of the depthcamera or a depth information processing element of a system.

If the depth information is estimated from 3DV video and information,the encoder can acquire the parameter values such as ZFar and ZNear atthe sampling time instant of the picture containing the current slice inthe current AU from a 3DV preprocessing element of the system.

The encoder acquires information such as ZFar, ZNear and the cameraparameters from system equipment, and employs the information as the DPsfor the AU containing the current slice.

Step S1303: the encoder judges whether the DPs for the current AU arethe same as the DPs in the subset SPS or not. If the DPs for the currentAU are the same as the DPs in the subset SPS, Step S1304 is executed;otherwise, Step S1305 is executed.

Step S1304: the encoder sets values of syntax elements dps_id in all SHsof the slices in the current AU to be 0, and writes the values into abitstream using an entropy coding method corresponding to ue(v). StepS1306 is executed.

Step S1305: the encoder determines a DPS for the slice in the currentAU, sets a value of syntax element dps_id in the SH to be an ID value ofthe used DPS, and writes the value into the bitstream. Step S1306 isexecuted.

A determination process for dps_id in Step S1305 may be implementedunder three conditions:

Condition 1:

If the currently used DPs are the same as the DPs included in a certaincoded DPS or virtual DPS, the encoder sets the values of the syntaxelements dps_id in all the SHs to be the ID value of the DPS or virtualDPS, and writes the values of dps_id into the bitstream using theentropy coding method corresponding to ue(v).

Condition 2:

If each data parameter in the currently used DPs is the same ascorresponding data parameters of DPSs and virtual DPSs, of which IDs aresmaller than DPS_ID_MAX, respectively (it is supposed that there aretotally n DPSs or virtual DPSs), the IDs of the DPSs and the virtualDPSs are recorded respectively, and are stored in dpsId[0], dpsId[1], .. . , dpsId[n−1], and the corresponding data parameters in the DPSs andthe virtual DPSs are stored in dpsContent[dpsId[i]], wherein i is 0, 1,. . . , n−1; and the value of DPS_ID_MAX is positive integer power of 2.

The value of DPS_ID_MAX may be a fixed value, and different values maybe set for combinations of different Profiles and different Levels inProfile/Level, or the value of DPS_ID_MAX is coded and transmitted inanother parameter set (such as subset SPS).

The encoder adjusts the storage order of the IDs of the DPSs and thevirtual DPSs in an array dpsId[i] (wherein, i is 0, 1, . . . , n−1)until the data parameters which can be obtained using the followingpseudo code in virtualDps are the same as the currently used DPs. In thepseudo code, virtualDps is initialized in a way that each data parameterin the DPS does not exist, that is, a flag corresponding to each dataparameter is set to be 0.

for (i=0; i<n; i++)

-   -   mergeDps(virtualDps, dpsContent[dpsId[i]]);        wherein mergeDps(dpsA, dpsB) functions as follows: if a value of        a flag indicating whether a certain data parameter in dpsA        exists or not is 0, the flag for the data parameter and value of        the data parameter in dpsA are set to be equal to the        counterpart flag and the counterpart data parameter in dpsB.

The encoder calculates the value of dps_id using the following pseudocode:

currDpsld = dpsld[ 0 ]; for ( i = 1; i < n; i++ ) { currDpsld =currDpsld << log2(MAX_DPS_ID); currDpsld += dpsld[ i ]; }

The encoder sets the values of the syntax elements dps_id in all the SHsof the slices in the current AU to be currDpsId, and writes the valuesinto the bitstream using the entropy coding method corresponding toue(v).

Condition 3

If the currently used DPs are different from DP data in any coded DPSand virtual DPS, or the Condition 2 is met but the encoder considers themethod used under the condition 2 is relatively complex (the number ofthe existing DPSs used in generating the virtual DPS for the current AUis controlled in consideration of error resistance) according to theencoder optimization rules, the encoder generates a new DPS for thecurrently used DPs, allocates an ID to the DPS, a value of the ID beingmore than 0 and smaller than MAX_DPS_ID, and assigns the value to thesyntax elements dps_id of all the SHs of the slices in the current AU.

The encoder encodes the currently used DPs using the generated DPS, andwrites the value of dps_id into the bitstream using the entropy codingmethod corresponding to ue(v).

Step S1306: the encoder continues encoding the slice included in thecurrent AU.

Example Embodiment 5

The embodiment provides electronic equipment, which is capable ofencoding a 3DV signal using the encoder implementation methods in theabovementioned embodiments and output a bitstream.

The electronic equipment can parse the bitstream to obtain DPs used indecoding process to recover the 3DV signal using the methods for decoderimplementation in the abovementioned embodiments.

The electronic equipments of the embodiment may be the equipmentgenerating bitstreams and/or the equipment receiving and renderingbitstreams in video communication application, such as a mobile phone, acomputer, a server, a set-top box, a portable mobile terminal, a digitalcamera and television broadcasting system equipments.

According to the embodiments, the methods and devices for encoding anddecoding using parameter sets, and the electronic equipment areprovided, and data is coded and decoded using the virtual parametersets, so that the problem of relatively complex flows of methods forencoding and decoding using parameter sets in the related art is solved,and the effect of improving encoding and decoding efficiency is furtherachieved. It should be noted that the technical effects are not peculiarto all of the abovementioned embodiments, and some technical effects canbe achieved by certain example implementation modes.

Obviously, those skilled in the art should know that each component orstep of the disclosure can be implemented by a universal computingdevice, and the components or steps can be concentrated on a singlecomputing device or distributed on a network formed by a plurality ofcomputing devices, and can optionally be implemented by programmablecodes executable for the computing devices, so that the components orsteps can be stored in a storage device for execution with the computingdevices, or can form each integrated circuit component, or multiplecomponents or steps therein can form a single integrated circuitcomponent for implementation. As a consequence, the disclosure is notlimited to any specific hardware and software combination.

The above is only the example embodiment of the disclosure and notintended to limit the disclosure, and for those skilled in the art, thedisclosure may have various modifications and variations. Anymodifications, equivalent replacements, improvements and the like withinthe principle of the disclosure shall fall within the scope ofprotection defined by the appended claims of the disclosure.

1. A method for encoding using parameter sets, comprising: determining,by an encoder, parameter sets and/or virtual parameter sets for a slice,wherein the virtual parameter set is a data structure which is generatedby loading information acquired from a bitstream into a syntax structureof an existing parameter set and/or a preset syntax structure andcomprises tool parameters and/or control parameters; and writing, by theencoder, identification numbers (IDs) of the parameter sets and/orvirtual parameter sets into a bitstream.
 2. The method according toclaim 1, wherein determining, by the encoder, the parameter sets and/orvirtual parameter sets for the slice comprises: judging, by the encoder,whether at least one of following conditions meets or not: toolparameters and/or control parameters for encoding current slice are thesame as tool parameters and/or control parameters of the existingparameter set, the tool parameters and/or control parameters forencoding the current slice are the same as tool parameters and/orcontrol parameters in an existing virtual parameter set; if a judgmentresult is positive, determining, by the encoder, the existing parameterset with the same tool parameters and/or control parameters as theparameter set for the slice, and/or determining the existing virtualparameter set with the same tool parameters and/or control parameters asthe virtual parameter set for the slice; and if the judgment result isnegative, employing, by the encoder, a generated parameter set as theparameter set for the slice, and/or employing a constructed virtualparameter set as the virtual parameter set for the slice; writing, bythe encoder, the IDs of the parameter sets and/or virtual parameter setsinto the bitstream comprises: writing, by the encoder, an ID of theparameter set with the same tool parameters and/or control parametersand/or an ID of the virtual parameter set with the same tool parametersand/or control parameters into one of following bitstreams: a SliceHeader (SH) bitstream, a bitstream employing the parameter set with thesame tool parameters and/or control parameters and/or a bitstreamemploying the virtual parameter set with the same tool parameters and/orcontrol parameters.
 3. (canceled)
 4. The method according to claim 1,wherein writing, by the encoder, the IDs of the parameter sets and/orvirtual parameter sets into the bitstream comprises: when the encoderidentifies that the tool parameters and/or control parameters for thecurrent encoding slice are partially but not completely the same as thetool parameters and/or control parameters of the parameter set, setting,by the encoder, a value of a syntax element corresponding to the ID ofthe parameter set in an SH of the current encoding slice as a firstpreset value, and writing the first preset value into the bitstreamusing an entropy coding method; and/or setting, by the encoder, a valueof a syntax element corresponding to a parameter set ID of the parameterset comprising the tool parameters and/or the control parameters as asecond preset value, and writing the second preset value into thebitstream using the entropy coding method; when the encoder identifiesthat the tool parameters and/or control parameters for the currentencoding slice are completely different from the tool parameters and/orcontrol parameters of the parameter set, generating, by the encoder, aparameter set comprising the tool parameters and/or control parametersfor the current encoding slice; allocating an ID to the parameter setfor the current encoding slice; and setting the value of the syntaxelement corresponding to the ID of the parameter set in the SH of thecurrent encoding slice to be the ID of the generated parameter set, andwriting the ID of the generated parameter set into the bitstream usingthe entropy coding method.
 5. The method according to claim 1, whereindetermining, by the encoder, the parameter sets and/or virtual parametersets for the slice comprises: judging, by the encoder, whether the toolparameters and/or control parameters for the current encoding slice arepartially but not completely the same as the tool parameters and/orcontrol parameters in the parameter sets or not, and a virtual parameterset with tool parameters and/or control parameters completely the sameas the tool parameters and/or control parameters for the currentencoding slice is able to be constructed or not; if a judgment result ispositive, constructing, by the encoder, a virtual parameter set byloading data in the existing parameter sets as the virtual parameter setfor the slice, and determining the ID of the virtual parameter set forthe slice; and if the judgment result is negative, generating, by theencoder, a parameter set comprising the tool parameters and/or thecontrol parameters, and allocating an ID to the generated parameter set;writing, by the encoder, the IDs of the parameter sets and/or virtualparameter sets into the bitstream comprises: setting, by the encoder,the value of the syntax element corresponding to the parameter set ID inthe SH of the current encoding slice as the ID of the generated virtualparameter set, and writing the value into the bitstream using an entropycoding method; and/or setting, by the encoder, the value of the syntaxelement corresponding to the parameter set ID in the parameter setcomprising the tool parameters and/or the control parameters as the IDof the virtual parameter set, and writing the ID of the generatedvirtual parameter set into the bitstream using the entropy codingmethod; or setting, by the encoder, the value of the syntax elementcorresponding to the parameter set ID in the SH of the current encodingslice as the ID of the generated parameter set, and writing the ID ofthe generated parameter set into the bitstream using the entropy codingmethod.
 6. (canceled)
 7. (canceled)
 8. A method for decoding usingparameter sets, comprising: generating, by a decoder, a virtualparameter set, wherein the virtual parameter set is a data structurewhich is generated by loading information acquired from a bitstream intoa structure of an existing parameter set and/or a preset data elementstructure and comprises tool parameters and/or control parameters;allocating, by the decoder, an identification number (ID) to the virtualparameter set; and activating, by the decoder, the virtual parameter setaccording to the ID of the virtual parameter set, and configuring toolparameters and/or control parameters for slice decoding processaccording to parameters in the virtual parameter set.
 9. (canceled) 10.(canceled)
 11. The method according to claim 8, wherein generating, bythe decoder, the virtual parameter set comprises: generating, by thedecoder, the virtual parameter set by loading information acquired fromone or more independent elements of the bitstream into a syntaxstructure of the existing parameter set or a preset syntax structure,wherein the virtual parameter set comprises all and/or a part ofinformation comprised in the one or more independent elements in thebitstream; allocating, by the decoder, the ID to the virtual parameterset comprises: allocating, by the decoder, an ID reserved for thevirtual parameter set to the virtual parameter set.
 12. The methodaccording to claim 11, wherein generating, by the decoder, the virtualparameter set by loading the information acquired from one or moreindependent elements of the bitstream into the syntax structure of theexisting parameter set or the preset syntax structure comprises:decomposing, by the decoder, the ID of the parameter set directly orindirectly referred to by the slice into index numbers of the one ormore independent elements for constructing the virtual parameter setaccording to the ID of the parameter set directly or indirectly referredto by the slice; and acquiring, by the decoder, the information from theone or more independent elements in the bitstream according to the indexnumbers of the one or more independent elements, and generating thevirtual parameter set according to the syntax structure of the existingparameter set or the preset syntax structure. 13.-22. (canceled)
 23. Adevice for encoding using parameter sets, wherein the device forencoding using parameter sets is applied to an encoder and comprises: afirst determination component, configured to determine parameter setsand/or virtual parameter sets for a slice, wherein the virtual parameterset is a data structure which is generated by loading informationacquired from a bitstream into a data element structure of an existingparameter set and/or a preset data element structure and comprises toolparameters and/or control parameters; and a first processing component,configured to write identification numbers (IDs) of the parameter setsand/or virtual parameter sets into a bitstream.
 24. The device accordingto claim 23, wherein the first determination component comprises: afirst judgment component, configured to judge whether at least one offollowing conditions meets or not: tool parameters and/or controlparameters for encoding a current slice are the same as tool parametersand/or control parameters of the existing parameter set, the toolparameters and/or control parameters for encoding the current slice arethe same as tool parameters and/or control parameters in an existingvirtual parameter set; a second determination component, configured to,if a judgment result of the first judgment component is positive,determine the existing parameter set which is determined by the firstjudgment component to have the same tool parameters and/or controlparameters as the parameter set for the slice, and/or determine theexisting virtual parameter set which is determined by the first judgmentcomponent to have the same tool parameters and/or control parameters asthe virtual parameter set for the slice; and a third determinationcomponent, configured to, if the judgment result of the first judgmentcomponent is negative, employ a generated parameter set as the parameterset for the slice, and/or employ a constructed virtual parameter set asthe virtual parameter set for the slice; the first processing componentis configured to write an ID of the parameter set which is determined bythe first judgment component to have the same tool parameters and/orcontrol parameters and/or an ID of the virtual parameter set which isdetermined by the first judgment component to have the same toolparameters and/or control parameters into one of following bitstreams: aSlice Header (SH) bitstream, a bitstream employing the parameter setwith the same tool parameters and/or control parameters and/or abitstream employing the virtual parameter set with the same toolparameters and/or control parameters.
 25. (canceled)
 26. The deviceaccording to claim 23, wherein the first processing component comprises:a second judgment component, configured to identify that the toolparameters and/or control parameters for the current encoding slice arepartially but not completely the same as the tool parameters and/orcontrol parameters of the parameter set; a first setting component,configured to set a value of a syntax element corresponding to the ID ofthe parameter set in an SH of the current encoding slice as a firstpreset value; a second processing component, configured to write thefirst preset value into the bitstream using an entropy coding method;and/or a second setting component, configured to set a value of a syntaxelement corresponding to a parameter set ID of the parameter setcomprising the tool parameters and/or the control parameters as a secondpreset value; a third processing component, configured to write thesecond preset value into the bitstream using the entropy coding method;a third judgment component, configured to identify that the toolparameters and/or control parameters for the current encoding slice arecompletely different from the tool parameters and/or control parametersof the parameter set; a first generation component, configured togenerate a parameter set comprising the tool parameters and/or controlparameters for the current encoding slice; a first allocation component,configured to allocate an ID to the parameter set for the currentencoding slice; a third setting component, configured to set the valueof the syntax element corresponding to the ID of the parameter set inthe SH of the current encoding slice to be the ID of the generatedparameter set; and a fourth processing component, configured to writethe ID of the generated parameter set into the bitstream using theentropy coding method.
 27. The device according to claim 23, wherein thefirst determination component comprises: a fourth judgment component,configured to judge, by the encoder, whether the tool parameters and/orcontrol parameters for the current encoding slice are partially but notcompletely the same as the tool parameters and/or control parameters inthe parameter set or not, and a virtual parameter set with a toolparameters and/or control parameters completely the same as the toolparameters and/or control parameters for the current encoding slice isable to be constructed or not; a fifth processing component, configuredto, if a judgment result of the fourth judgment component is positive,construct, by the encoder, a virtual parameter set based on the data inthe existing parameter sets as the virtual parameter set for the slice;a fourth determination component, configured to determine the ID of thevirtual parameter set for the slice; a second generation component,configured to, if the judgment result of the fourth judgment componentis negative, generate a parameter set comprising the tool parametersand/or the control parameters; and a second allocation component,configured to allocate an ID to the generated parameter set; the firstprocessing component comprises: a fourth setting component, configuredto set the value of the syntax element corresponding to the parameterset ID in the SH of the current encoding slice as the ID of thegenerated virtual parameter set; a fifth processing component,configured to write the value into the bitstream using an entropy codingmethod; and/or a fifth setting component, configured to set the value ofthe syntax element corresponding to the parameter set ID in theparameter set comprising the tool parameters and/or the controlparameters as the ID of the virtual parameter set; a sixth processingcomponent, configured to write the ID of the generated virtual parameterset into the bitstream using the entropy coding method; or a sixthsetting component, configured to set the value of the syntax elementcorresponding to the parameter set ID in the SH of the current encodingslice as the ID of the generated parameter set; and a seventh processingcomponent, configured to write the ID of the generated parameter setinto the bitstream using the entropy coding method.
 28. (canceled)
 29. Adevice for decoding using parameter sets, wherein the device fordecoding using parameter sets is applied to a decoder and comprises: athird generation component, configured to generate a virtual parameterset, wherein the virtual parameter set is a data structure which isgenerated by loading information acquired from a bitstream into a dataelement structure of an existing parameter set and/or a preset dataelement structure and comprises tool parameters and/or controlparameters; a third allocation component, configured to allocate anidentification number (ID) to the virtual parameter set; a firstactivation component, configured to activate the virtual parameter setaccording to the ID of the virtual parameter set; and a first decodingcomponent, configured to configure tool parameters and/or controlparameters for slice decoding process according to parameters in thevirtual parameter set.
 30. (canceled)
 31. (canceled)
 32. The deviceaccording to claim 29, wherein the third generation component isconfigured to generate the virtual parameter set by loading informationacquired from one or more independent elements of the bitstream into asyntax structure of the existing parameter set or a preset syntaxstructure, wherein the virtual parameter set comprises all and/or a partof information comprised in the one or more independent elements in thebitstream; the third allocation component comprises: a fourth allocationcomponent, configured to allocate an ID reserved for the virtualparameter set to the virtual parameter set.
 33. The device according toclaim 32, wherein the third generation component comprises: adecomposition component, configured to decompose the ID of the parameterset directly or indirectly referred to by the slice into index numbersof the one or more independent elements for constructing the virtualparameter set according to the ID of the parameter set directly orindirectly referred to by the slice; and a fourth generation component,configured to acquire the information from the one or more independentelements in the bitstream according to the index numbers of the one ormore independent elements, and generate the virtual parameter setaccording to the syntax structure of the existing parameter set or thepreset syntax structure. 34.-41. (canceled)